﻿using System.Data;
namespace Library.OrmEnterpriseEntity {
	/// <summary>
	/// Query parameter
	/// </summary>
	public class QueryParameter {
		/// <summary>
		/// Create query parameter instance
		/// </summary>
		/// <param name="type">parameter type</param>
		/// <param name="value">parameter value</param>
		public QueryParameter(DbType type, object value) {
			Type = type;
			Value = value;
		}
		/// <summary>
		/// Parameter type
		/// </summary>
		public DbType Type;
		/// <summary>
		/// Parameter value
		/// </summary>
		public object Value;
		/// <summary>
		/// Parameter name
		/// </summary>
		public string SqlName;


		public override string ToString() {
			return "Value: " + Value + ", Type: " + Type;
		}
	}
}
